package com.myjoje.bean.system;

import com.myjoje.base.BaseUuidBean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 部门架构表
 */
@Entity
@Table(name = "sy_dept_structure")
public class DeptStructureBean extends BaseUuidBean {

    @Column(columnDefinition = "varchar(255) COMMENT '部门名称'")
    private String name;

    @Column(columnDefinition = "varchar(40) COMMENT '父id'")
    private String parentId;

    @Column(columnDefinition = "varchar(40) COMMENT '父部门名称'")
    private String parentName;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }
}
